<template>
    <div class=''>
        <van-sticky>
            <van-nav-bar title="小米商城" left-text="返回" right-text="按钮" left-arrow @click-left="onClickLeft" />
            </van-sticky>
                <transition name="slide">
                    <keep-alive exclude="list">
                        <router-view></router-view>
                    </keep-alive>
                </transition>

                <van-tabbar route>
                    <van-tabbar-item icon="home-o" to="/home">首页</van-tabbar-item>
                    <van-tabbar-item icon="search" to="/list">列表</van-tabbar-item>
                    <van-tabbar-item icon="friends-o" to="/shopcar">购物车</van-tabbar-item>
                    <van-tabbar-item icon="star-o" to="/like">收藏</van-tabbar-item>
                    <van-tabbar-item icon="setting-o" to="/my">我的</van-tabbar-item>
                </van-tabbar>
    </div>
</template>

<script>
    export default {
        data() {
            return {};
        },
        mounted() {},
        methods: {
            onClickLeft() {
                this.$router.go(-1)
            }
        },
    };
</script>

<style lang='scss'>

</style>